---
- targets:
    {% for port in nginx_exporter_ports %}
    - {{ hostvars[item]['intranet_ip'] }}:{{ port }}
    {% endfor %}